package com.asj.service;

import static com.asj.enums.ControlProgressBarEnum.cancelSupervision_step;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.telephony.PhoneStateListener;
import android.telephony.TelephonyManager;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import androidx.activity.EdgeToEdge;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;

import com.asj.MainActivity;
import com.asj.MainActivityService;
import com.asj.R;
import com.asj.mq.ReceiveMessageTask;
import com.asj.service.binding.BindingAffirmDeviceService;
import com.asj.service.control.ControlProgressBarService;
import com.asj.service.oppoSdk.OPPOControlService;
import com.asj.service.oppoSdk.OPPOSDKService;

/**
 * 分配页面服务
 * */
public class AllocationPageService {

    public static MainActivity mainActivity;

    public static void coreLoad(MainActivity mainActivityParam){
        //参数注入
        mainActivity = mainActivityParam;
        mainActivity.runOnUiThread(()->{
            //加载进度条页面
            mainActivity.setContentView(R.layout.load_page);
            //停止后台任务
            MainActivityService.stopMeService(mainActivityParam);
            //设备绑定条件判断
            BindingAffirmDeviceService.affirmDeviceBind(mainActivity);
        });
    }
}
